package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TSampBasiDataInfoEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TSampAeDataInfoDao;
import io.renren.modules.substation.entity.TSampAeDataInfoEntity;
import io.renren.modules.substation.service.TSampAeDataInfoService;


@Service("tSampAeDataInfoService")
public class TSampAeDataInfoServiceImpl extends ServiceImpl<TSampAeDataInfoDao, TSampAeDataInfoEntity> implements TSampAeDataInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSampAeDataInfoEntity> page = this.page(
                new Query<TSampAeDataInfoEntity>().getPage(params),
                new QueryWrapper<TSampAeDataInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateByDevId(TSampAeDataInfoEntity tSampAeDataInfoEntity)
    {
        return baseMapper.updateByDevId(tSampAeDataInfoEntity);
    }

}